var express = require('express');
var router = express.Router();
var indexRouter = {};
var articlecategory = require('../../../controller/articlecategory');
var userController = require('../../../controller/user');


router.use(userController.checkLogin);

router.get('/', articlecategory.getList);

router.delete('/:id', articlecategory.delete);

router.delete('/batch/:ids',articlecategory.removeBatch);

router.post('/',articlecategory.add);

router.put('/',articlecategory.update);

router.get('/:id',articlecategory.getFindId);



indexRouter.router = router;
module.exports = indexRouter;